package com.xxl.job.admin.job;

import com.jcraft.jsch.Session;
import com.ruoyi.backups.service.IMysqlBackupsService;
import com.ruoyi.backups.service.impl.OosConfigServiceImpl;
import com.ruoyi.common.sdk.oos.AliyunOosClient;
import com.ruoyi.common.sdk.ssh.JschClient;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author chenlinqing
 * @date 2024/1/20 下午8:39
 **/
@Component
public class DemoJob {
    private final Logger logger = LoggerFactory.getLogger(DemoJob.class);

    @Autowired
    private IMysqlBackupsService mysqlBackupsService;

    @Autowired
    private OosConfigServiceImpl oosConfigService;


    @XxlJob("demoJobHandler")
    public void demoJobHandler(String name) {
        logger.info("demoJobHandler执行成功" + name);
    }



}
